package com.zktr.dao;

import java.util.LinkedHashMap;
import java.util.List;

import com.zktr.pojo.AdminUser;
import com.zktr.utils.CRUDDAO;

public class AdminUserDao {
	CRUDDAO<AdminUser> crud = new CRUDDAO<>(AdminUser.class);   
	public static void main(String[] args) {
		AdminUserDao gDao = new AdminUserDao();
		System.out.println(gDao.queryAllAdminUser());
	}
	/**
	 * 查询所有数据
	 * @return
	 */
	public List<AdminUser> queryAllAdminUser(){
    	   String sql="select * from admin_user";
    	   LinkedHashMap<String, Object[]> map = new LinkedHashMap<String,Object[]>();
    	   map.put(sql, null);
    	   return crud.selectAll(map).get(0);
    	   
       }
}
